<?php

$oReq = &App::getRequest();
$oTpl = &App::getTemplate();
$oLang = &App::getLanguage();

if ( $oReq->get('submit') )
{
	if ( !$oLang->exportLanguagePackage($oReq->get('package'), $oReq->get('product')) )
	{
		App::gotoUrl('admin.language.download', array(),  App::format('language_download_fail'), false);
	}
}

$oTpl->assign(array
(
	'aItems' => $oLang->getLanguages(),
));

?>